package com.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class LoginPage extends AnyPage {
	
	@FindBy(xpath = "//form[@id='loginform']/table/tbody/tr[1]/td[2]/input")
	public WebElement userNameField;
	
	@FindBy(xpath = "//form[@id='loginform']/table/tbody/tr[2]/td[2]/input")
	public WebElement passwordField;
	
	@FindBy(xpath = "//form[@id='loginform']/table/tbody/tr[3]/td[2]/input")
	public WebElement loginButton;
	
	@FindBy(xpath = "//form[@id='loginform']")
	public WebElement loginForm;
	
	public boolean isOnThisPage() {
		return loginForm.isDisplayed();
	}
}
